<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
  //一定不要写成死的127.0.0.1,要不然同一个局域网下其他设备无法发送请求
  let baseUrl="http://"+window.location.host+"/"
</script>
</html>